/* @(#)ProductType.java    V1.0
 *
 * Project: APEP 
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *       {CREATE_TIME} First release
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2007 Auto-Parts E-Procurement Co., Ltd. 
 *        No.251-1 Wuning Road, Shanghai, 200063, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Auto-Parts E-Procurement Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with APEP.
 *
 * Warning:
 * =============================================================================
 *   
 * 
 */
package system.base;

import framework.core.*;

/*
	Author    :
	CreateTime:{CREATE_TIME}
*/
public class ProductTypeSearchEvent extends SearchEvent
{

	private String m_ID = "" ; // all

	private String m_PRODUCT_ID = "" ; // all

	private String m_PRODUCT_CODE = "" ; // all

	private int m_PRODUCT_TYPE = Value.NULL_INT ; // all

	private String m_PROVIDER_CODE = "" ; // all

	private String m_REMARK = "" ; // all

	private String m_CREATE_TIME = "" ; // all

	private String m_CREATE_USER = "" ; // all

	private String m_CREATE_USER_ID = "" ; // all

	private String m_LAST_UPDATE_TIME = "" ; // all

	private String m_LAST_UPDATE_USER = "" ; // all

	private String m_LAST_UPDATE_USER_ID = "" ; // all

	private int m_IS_BID = Value.NULL_INT ; // all

	private int m_IS_BALANCE = Value.NULL_INT ; // all
		

public ProductTypeSearchEvent() 
{
	super();

	setOrderField(ProductType.ID);

}



	public String getId()
	{
		return m_ID ;
	}
	public void setId(String v)
	{
		m_ID = v;
	}

	public String getProductId()
	{
		return m_PRODUCT_ID ;
	}
	public void setProductId(String v)
	{
		m_PRODUCT_ID = v;
	}

	public String getProductCode()
	{
		return m_PRODUCT_CODE ;
	}
	public void setProductCode(String v)
	{
		m_PRODUCT_CODE = v;
	}

	public int getProductType()
	{
		return m_PRODUCT_TYPE ;
	}
	public void setProductType(int v)
	{
		m_PRODUCT_TYPE = v;
	}

	public String getProviderCode()
	{
		return m_PROVIDER_CODE ;
	}
	public void setProviderCode(String v)
	{
		m_PROVIDER_CODE = v;
	}

	public String getRemark()
	{
		return m_REMARK ;
	}
	public void setRemark(String v)
	{
		m_REMARK = v;
	}

	public String getCreateTime()
	{
		return m_CREATE_TIME ;
	}
	public void setCreateTime(String v)
	{
		m_CREATE_TIME = v;
	}

	public String getCreateUser()
	{
		return m_CREATE_USER ;
	}
	public void setCreateUser(String v)
	{
		m_CREATE_USER = v;
	}

	public String getCreateUserId()
	{
		return m_CREATE_USER_ID ;
	}
	public void setCreateUserId(String v)
	{
		m_CREATE_USER_ID = v;
	}

	public String getLastUpdateTime()
	{
		return m_LAST_UPDATE_TIME ;
	}
	public void setLastUpdateTime(String v)
	{
		m_LAST_UPDATE_TIME = v;
	}

	public String getLastUpdateUser()
	{
		return m_LAST_UPDATE_USER ;
	}
	public void setLastUpdateUser(String v)
	{
		m_LAST_UPDATE_USER = v;
	}

	public String getLastUpdateUserId()
	{
		return m_LAST_UPDATE_USER_ID ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_LAST_UPDATE_USER_ID = v;
	}

	public int getIsBid()
	{
		return m_IS_BID ;
	}
	public void setIsBid(int v)
	{
		m_IS_BID = v;
	}

	public int getIsBalance()
	{
		return m_IS_BALANCE ;
	}
	public void setIsBalance(int v)
	{
		m_IS_BALANCE = v;
	}
		


	
	public String viewId() throws Exception
	{
		return Value.view(getId());
	}
	
	public String viewProductId() throws Exception
	{
		return Value.view(getProductId());
	}
	
	public String viewProductCode() throws Exception
	{
		return Value.view(getProductCode());
	}
	
	public String viewProductType() throws Exception
	{
		return Value.view(getProductType());
	}
	
	public String viewProviderCode() throws Exception
	{
		return Value.view(getProviderCode());
	}
	
	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}
	
	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}
	
	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}
	
	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}
	
	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}
	
	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}
	
	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}
	
	public String viewIsBid() throws Exception
	{
		return Value.view(getIsBid());
	}
	
	public String viewIsBalance() throws Exception
	{
		return Value.view(getIsBalance());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();
	
	c.add(getCondition(ProductType.ID,getId()));
	
	c.add(getCondition(ProductType.PRODUCT_ID,getProductId()));
	
	c.add(getCondition(ProductType.PRODUCT_CODE,getProductCode()));
	
	c.add(getCondition(ProductType.PRODUCT_TYPE,getProductType()));
	
	c.add(getCondition(ProductType.PROVIDER_CODE,getProviderCode()));
	
	c.add(getCondition(ProductType.REMARK,getRemark()));
	
	c.add(getCondition(ProductType.CREATE_TIME,getCreateTime()));
	
	c.add(getCondition(ProductType.CREATE_USER,getCreateUser()));
	
	c.add(getCondition(ProductType.CREATE_USER_ID,getCreateUserId()));
	
	c.add(getCondition(ProductType.LAST_UPDATE_TIME,getLastUpdateTime()));
	
	c.add(getCondition(ProductType.LAST_UPDATE_USER,getLastUpdateUser()));
	
	c.add(getCondition(ProductType.LAST_UPDATE_USER_ID,getLastUpdateUserId()));
	
	c.add(getCondition(ProductType.IS_BID,getIsBid()));
	
	c.add(getCondition(ProductType.IS_BALANCE,getIsBalance()));
		

			
		return c ;
	}
	
//add by  start

//add by  end
}
